﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WucAddEmployee.ascx.cs" Inherits="WucAddEmployee" %>
<style type="text/css">
    .auto-style1 {
        width: 100%;
        border:none;
    }

* {
	padding:0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
}

        .auto-style2 {
            height: 41px;
        }
        .auto-style5 {
        height: 38px;
        text-align: center;
    }
    .auto-style6 {
        width: 100%;
        height: 386px;
    }
    .auto-style7 {
        text-align: center;
    }
    .auto-style10 {
        height: 47px;
        text-align: center;
    }
    .auto-style11 {
        height: 47px;
    }
    .auto-style14 {
        height: 44px;
        text-align: center;
    }
    .auto-style15 {
        height: 44px;
    }
    </style>

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0" OnActiveViewChanged="MultiView1_ActiveViewChanged">
            <asp:View ID="View1" runat="server">
                <table align="center" class="auto-style1">
                    <tr>
                        <td class="auto-style2" style="text-align: center">
                            <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Names="Impact" Font-Size="XX-Large" Text="Search For Employee:"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style2" style="text-align: center">
                            <asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="Large" Text="Search By:"></asp:Label>
                    <br />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:RadioButtonList ID="RBLSearch" runat="server" RepeatDirection="Horizontal" Width="363px">
                                <asp:ListItem Selected="True" Value="ID">Employee No</asp:ListItem>
                                <asp:ListItem Value="FNAME">First Name</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style5">
                            <asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="Medium" Text="Value To Search:"></asp:Label>
                            &nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="txtSearch" runat="server" Width="158px"></asp:TextBox>
                            &nbsp;&nbsp;&nbsp;&nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txtSearch" ErrorMessage="Invalid Value Of Search ." ForeColor="Red" ValidationExpression="[a-zA-Z0-9]*">*</asp:RegularExpressionValidator>
                            &nbsp;&nbsp;
                            <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="Search" Width="100px" />
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style7" style="text-align: left">
                            <asp:ValidationSummary ID="ValidationSummary2" runat="server" ForeColor="Red" />
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style7" style="text-align: center">
                            <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="Add New" />
                            <asp:Button ID="btnUpdate" runat="server" Enabled="False" OnClick="btnUpdate_Click" Text="Update" />
                            <asp:Button ID="btnRemove" runat="server" Enabled="False" OnClick="btnRemove_Click" Text="Remove" />
                    <br />
                    <br />
                            <asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label>
                    <br />
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style7" style="text-align: left">
                            <asp:GridView ID="grdv" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Width="401px" OnSelectedIndexChanged="grdv_SelectedIndexChanged">
                                <AlternatingRowStyle BackColor="White" />
                                <Columns>
                                    <asp:ButtonField ButtonType="Button" CommandName="Select" HeaderText="Selct" ShowHeader="True" Text="&lt;&lt;&lt;" />
                                </Columns>
                                <EditRowStyle BackColor="#2461BF" />
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <RowStyle BackColor="#EFF3FB" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                <SortedDescendingHeaderStyle BackColor="#4870BE" />
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
            </asp:View>
    <br />
            <asp:View ID="View2" runat="server">
                <table class="auto-style6">
                    <tr>
                        <td colspan="3" style="text-align: center">
                            <asp:Label ID="lblTitle" runat="server" Font-Bold="True" Font-Names="Impact" Font-Size="XX-Large" Text="Employee Data"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style7">
                            <asp:Label ID="Label4" runat="server" Text="Emp ID:"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtID" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtID" Display="Dynamic" ErrorMessage="Employee ID Is Reuired ." ForeColor="Red" ValidationGroup="G1">*</asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtID" Display="Dynamic" ErrorMessage="Employee ID Should be Number (example : 1)" ForeColor="Red" ValidationExpression="[0-9]+" ValidationGroup="G1">*</asp:RegularExpressionValidator>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="auto-style7">
                            <asp:Label ID="Label5" runat="server" Text="FName:"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtFN" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtFN" Display="Dynamic" ErrorMessage="First Name Is Reuired ." ForeColor="Red" ValidationGroup="G1">*</asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtFN" Display="Dynamic" ErrorMessage="First Name Should be String (example : Mahmoud)" ForeColor="Red" ValidationExpression="[a-zA-Z]+" ValidationGroup="G1">*</asp:RegularExpressionValidator>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="auto-style7">
                            <asp:Label ID="Label6" runat="server" Text="SName"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtSN" runat="server"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtFN" Display="Dynamic" ErrorMessage="Second Name Should be String (example : Mahmoud)" ForeColor="Red" ValidationExpression="[a-zA-Z]+" ValidationGroup="G1">*</asp:RegularExpressionValidator>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td style="text-align: center">
                            <asp:Label ID="Label7" runat="server" style="text-align: right" Text="LName:"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLN" runat="server" Width="124px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtLN" Display="Dynamic" ErrorMessage="Last Name Is Reuired ." ForeColor="Red" ValidationGroup="G1">*</asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtLN" Display="Dynamic" ErrorMessage="Last Name Should be String (example : Mahmoud)" ForeColor="Red" ValidationExpression="[a-zA-Z]+" ValidationGroup="G1">*</asp:RegularExpressionValidator>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="auto-style10">
                            <asp:Label ID="Label8" runat="server" Text="Job:"></asp:Label>
                        </td>
                        <td class="auto-style11">
                            <asp:DropDownList ID="DDLJob" runat="server" Height="44px" Width="158px">
                                <asp:ListItem>Doctor</asp:ListItem>
                                <asp:ListItem Selected="True" Value="Receptionist">Receptionist</asp:ListItem>
                                <asp:ListItem>Analyser</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="auto-style11"></td>
                    </tr>
                    <tr>
                        <td class="auto-style14">
                            <asp:Label ID="Label9" runat="server" Text="Center"></asp:Label>
                        </td>
                        <td class="auto-style15">
                            <asp:DropDownList ID="DDlCenter" runat="server" Height="38px" Width="164px">
                                <asp:ListItem Selected="True">Damanhour</asp:ListItem>
                                <asp:ListItem>Bani Swaf</asp:ListItem>
                                <asp:ListItem>Tanta</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="auto-style15"></td>
                    </tr>
                    <tr>
                        <td class="auto-style7">
                            &nbsp;</td>
                        <td>
                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" HeaderText="Take Your Attention Please" />
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="auto-style7" colspan="2">
                            <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="Save" ValidationGroup="G1" />
                            <asp:Button ID="btnCancel" runat="server" OnClick="btnCancel_Click" Text="Cancel" />
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="auto-style7">&nbsp;</td>
                        <td>
                            <br />
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                </table>
            </asp:View>
    <br />
        </asp:MultiView>
    </ContentTemplate>
</asp:UpdatePanel>


